package com.itheima.health.dao;

import com.github.pagehelper.Page;
import com.itheima.health.pojo.CheckItem;
import com.itheima.health.pojo.Permission;

import java.util.Set;

/**
 * @ClassName PermissionDao
 * @Description TODO
 * @Author ly
 * @Company 深圳黑马程序员
 * @Date 2020/2/25 14:22
 * @Version V1.0
 */
public interface PermissionDao {

    Set<Permission> findPermissionsByRoleId(Integer roleId);

    Page<CheckItem> selectByCondition(String queryString);

    void add(Permission permission);

    Permission findPermissionsById(Integer id);

    void edit(Permission permission);

    long findCountByPermissionId(Integer id);

    void deleteById(Integer id);
}
